package com.itchen.controller;

/**
 * @author げっしょく
 * @date 2021/9/16
 */
public class Result {
    private Object object;
    private boolean flag;
    private String msg;

    public Result() {
    }

    public Result(Object object, boolean flag) {
        this.object = object;
        this.flag = flag;
    }

    public Result(boolean flag) {
        this.flag = flag;
    }

    public Result(boolean flag, String msg) {
        this.flag = flag;
        this.msg = msg;
    }

    public Result(Object object, boolean flag, String msg) {
        this.object = object;
        this.flag = flag;
        this.msg = msg;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "Result{" +
                "object=" + object +
                ", flag=" + flag +
                ", msg='" + msg + '\'' +
                '}';
    }
}
